<?php 
      echo $this->Html->css("chosen");
      echo $this->Html->css("uploadify");
      echo $this->Html->css("dataTables");
      echo $this->Html->css("jquery.cleditor");
      echo $this->Html->css("validationEngine.jquery");
 ?>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/dataTables.min.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/customInput.jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/chosen.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.filestyle.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/zice.custom1.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.cleditor.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/uploadify/jquery.uploadify.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/layout_table.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/manager_news.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.validationEngine.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.validationEngine-vi.js"></script>
<script type="text/javascript" src="<?php echo $this->webroot; ?>js/jquery.autotab.js"></script>

<div class="titlePage">
<h1>Chỉnh sửa bài viết</h1>
</div>
<div class="onecolumn">
	<div class="header">
		<span><span class="ico gray user"></span>Danh sách bài viết</span>
	</div>
	<div class=" clear"></div>
	<div class="content">
		<div class="tableName">
			<table class="display data_table2 listNews" >
				<thead>
					<tr>
						<th><div class="th_wrapp">Tên bài viết</div></th>
						<th><div class="th_wrapp">Ngày lập</div></th>
						<th><div class="th_wrapp">Loại bài viết</div></th>
						<th><div class="th_wrapp">Quản lý</div></th>
					</tr>
				</thead>
				<tbody>
				<?php 
		foreach ($news as $item) {
	?>
			<tr class="odd gradeX editN" id="<?php echo $item['n']['id'].'_edit'?>">
      					<td class='editName'><?php  echo $item['n']['name'];?>
      					</td>
      					<td class='editDate'><?php  echo date('d-m-Y H:i:s',strtotime($item['n']['date']));?>
      					</td>
      					<td class='editType'><?php  echo $item['t']['name'];?>
      					</td>
		      			<td >  
                                <span  id='<?php echo $item['n']['id']?>'>
                                      <a  title="Edit" class='btnEdit' href="EditNewsMethod/?id=<?php echo $item['n']['id']?>">
                                           <img src="<?php echo $this->webroot; ?>img/icon/color_18/pencil.png" >
                                      </a>
                                 </span> 
                                 <span class="tip" >
                                       <a title="Delete" class="btnDelete" id="<?php echo $item['n']['id']?>" >
                                           <img src="<?php echo $this->webroot; ?>img/icon/color_18/delete.png">
                                       </a>
                                </span>
                                 
				          </td>
      					</tr><?php }?>
					</tbody>
				</table>
            </div>
	</div>
</div>